package com.ice.work.moment.tencent.facade.mapper;

import com.honeybee.cloud.framework.common.mapper.BaseCovertMapper;
import com.ice.work.moment.tencent.facade.dto.UserDTO;
import com.ice.work.moment.tencent.facade.model.User;
import com.ice.work.moment.tencent.facade.request.AddUserRequest;
import com.ice.work.moment.tencent.facade.vo.UserVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @Description UserConvertMapper
 * @Author DELL
 * @Create 2019-01-09
 * @Since 1.0.0
 */
@Mapper
@SuppressWarnings("all")
public interface UserConvertMapper extends BaseCovertMapper {
    UserConvertMapper INSTANCE = Mappers.getMapper(UserConvertMapper.class);

    UserDTO toDTO(User user);

    UserVO toVO(UserDTO user);

    User toUser(AddUserRequest request);

}
